package io.zpy.config;

public enum ErrorCodeEnum {

    INVOKE_SUCCESS(200,"调用接口成功"),
    ADD_SUCCESS(200,"添加推送订单成功"),
    UPDATE_SUCCESS(200,"更新推送订单成功"),
    DELETE_SUCCESS(200,"删除推送订单成功"),
    PROCESS_ERROR(500,"程序错误"),
    PARAMETE_ERROR(412,"缺少重要参数"),
    INVOKE_FAILED(406,"查询失败"),
    UPDATE_FAILED(407,"更新推送订单失败"),
    ADD_FAILED(408,"添加推送订单失败"),
    DELETE_FAILED(409,"删除推送订单失败");




    private final Integer code;
    private final String desc;

    ErrorCodeEnum(Integer code, String desc) {
        this.desc = desc;
        this.code = code;
    }
    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
